package com.mars.tukuan.rpc.api;

import com.github.pagehelper.PageInfo;
import com.mars.base.common.utils.Paginator;
import com.mars.base.service.support.IService;
import com.mars.tukuan.dto.CarRepairVo;
import com.mars.tukuan.entity.CarRepair;

public interface CarRepairService extends IService<CarRepair, Long> {
	
	/**
	 * 修改或添加保养信息，主要修改下次保养里程数
	 * @param entity
	 */
	public void saveOrUpdate(CarRepairVo entity) ;
	
	/**
	 * 修改当前里程数
	 * @param entity
	 */
	public void updateCurrent(CarRepairVo entity) ;

	/**
	 * 查询车辆保养信息
	 * @param paginator
	 * @param vo
	 * @return
	 */
	public PageInfo<CarRepairVo> selectPageByCar(Paginator paginator, CarRepairVo vo);
	
}
